﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeHouse.Server.Dto;
using LeHouse.Server.Dal;

namespace LeHouse.Server.Service
{
    public class Collateral_InquiryRecordService : BaseService<Collateral_InquiryRecord>
    {
        Collateral_InquiryRecordDAL dal = new Collateral_InquiryRecordDAL();
        /// <summary>
        /// 询价记录表业务逻辑层
        /// </summary>
        protected override GenericBaseDAL<Collateral_InquiryRecord> Dal
        {
            get { return new Collateral_InquiryRecordDAL(); }
        }
        /// <summary>
        /// 根据报告号去查询询价记录表的信息
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public List<Collateral_InquiryRecord> Community(string P_ReportNumber)
        {
            return dal.Community(P_ReportNumber);
        }
        /// <summary>
        /// 根据报告号去查询记录表是否有该条记录
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public int count(string P_ReportNumber)
        {
            return dal.count(P_ReportNumber);
        }

        public List<Collateral_InquiryRecord> Community(string P_ReportNumber, out Collateral_InquiryRecord tp)
        {
            return dal.Community(P_ReportNumber, out tp);
        }

    }
}
